import request from '@/utils/request'
/**
 * 查询调度员绑定的左右分机号
 * @param data  id -subscriber_id
 */
export default {
  queryBindTel (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/userManage/queryUser',
      method: 'post',
      data
    })
  }
  ,
  /**
   * 查询调度员的状态
   * @param data  userId   string
   */
  queryUserStatus (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/userManage/queryUserStatus',
      method: 'post',
      data
    })
  }
  ,
  /**
   * 修改调度员的状态
   * @param data  {"userId":10021,"offline":0,status":0,"transferExt":0}
   *offline,status,transferExt可为空
   */
  changeUserStatus (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/userManage/updateUserStatus',
      method: 'post',
      data
    })
  }
  ,
  /**
   * 查询是否为紧急号码
   * @param number    string
   */
  queryEmergencyNumber (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/emergencyNumberManage/getEmergencyNumber',
      method: 'post',
      data
    })
  },
  /*调度10条历史通话*/
  getHistoryCall(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/voiceRecord/queryUserRecord',
      method: 'post',
      data
    })
  },  /*调度历史通话*/
  queryIpRecord(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/voiceRecord/queryIpRecord',
      method: 'post',
      data
    })
  }, /*查询绑定左话机的subID*/
  queryNumAndNameBySipN(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/Subscriber/queryNumAndNameBySipNum',
      method: 'post',
      data
    })
  },
  /*查询录音详情，针对录音地址*/
  queryMsgRecordFilePath (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/voiceRecord/queryRecordDetail',
      method: 'post',
      data
    })
  },/*添加未知号码到个人通讯录*/
  handleAddToPersionBookClickAPI (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/addOne',
      method: 'post',
      data
    })
  },/*添加未知号码到个人通讯录*/
  handlepersonalAddressBookManageupdateOrAdd (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/personalAddressBookManage/updateOrAdd',
      method: 'post',
      data
    })
  },

}
